<%
# expects as local: attachment_name, for attachment tracking
-%>
<%= hidden_field attachment_name, :type, :value => 'Image' %>
<dt>
  <%= link_to_function( image_tag( 'tango/22x22/emblems/emblem-unreadable.png',
                                   :alt => 'remove this attachment',
                                   :class => 'remove_img') ) do |page|
        page.remove attachment_name
      end %>
  <%= label attachment_name, :description, 'Description' %>
</dt>
<dd><%= text_field attachment_name, :description %></dd>
<dt><%= label attachment_name, :uploaded_data, 'Image file', :class => 'required' %></dt>
<dd><%= file_field attachment_name, :uploaded_data %></dd>
